package personal.xjl._23java1studentdemo.service;

import org.springframework.stereotype.Service;
import personal.xjl._23java1studentdemo.model.Student;

import java.util.List;


public interface StudentService {

    List<Student> findAll();

    int remove(int id);
   int add(Student student);

   int edit(Student student);

    Student findById(int id);

    //分页查询
    List<Student> findByPage(int pageNo, int pageSize);

    boolean login(String username, String password);
}
